{% extends "base.html" %}
{% block title %}RustDesk{% endblock %}
{% block legend_name %}Add Client{% endblock %}
{% block content %}
<div style="padding: 20px; background-color: #F2F2F2;">
    <div class="layui-row layui-col-space15">
      <div class="layui-col-md15">
        <div class="layui-card">
          <div class="layui-card-header">{{ "Add Client" }}</div>
          <div class="layui-card-body">
            <form action="/api/add_peer" method="post" enctype="multipart/form-data">
                <label for="{{ form.clientID.id_for_label }}">Rustdesk client ID:</label>
                {{ form.clientID }}<br><br>
                <label for="{{ form.alias.id_for_label }}">Alias:</label>
                {{ form.alias }}<br><br>
                <label for="{{ form.tags.id_for_label }}">Tags:</label>
                {{ form.tags }}<br><br>
                <button type="submit">Add Client</button>
            </form>
          </div>
        </div>
    </div>
</div>
<script>
    document.getElementById("{{ form.clientID.id_for_label }}").value = "{{rid}}"
</script>
{% endblock %}